/**
* @author Saerom Kim <kim79881@gmail.com>
* @version 1.6
* @since 2011-11-09
*/

import java.awt.Point;
import java.awt.Color;
import java.util.*;

public class EqualsMain{
	public static void main(String[] arg){
		//Triangle t = new Triangle(new Point(0,0), new Point(1,1),
		//				new Point(2,2));
		//ColoredTriangle ct = new ColoredTriangle(Color.red,
		//		new Point(0,0), new Point(1,1), new Point(2,2));
		//System.out.println(t.equals(ct));
		//System.out.println(ct.equals(t));

		ColoredTriangle redTriangle = new ColoredTriangle(Color.red,
				new Point(0,0), new Point(1,1), new Point(2,2));
		ColoredTriangle blueTriangle = new ColoredTriangle(Color.blue,
                                new Point(0,0), new Point(1,1), new Point(2,2));
		System.out.println(redTriangle.equals(blueTriangle));
                System.out.println(blueTriangle.equals(redTriangle));

		Triangle t = new Triangle(new Point(0,0), new Point(1,1),
						new Point(2,2));
		ColoredTriangle rct = new ColoredTriangle(Color.red,
                                new Point(0,0), new Point(1,1), new Point(2,2));
		System.out.println(t.equals(rct));
                System.out.println(rct.equals(t));
	}
}
